import request from '@/utils/request'

/**
 * 新增门店
 */
export function addShop(data: AnyObject) {
    return request.post('store/add', data)
}
/**
 * 获取门店列表
 */
export function getShopList() {
    return request.get('store/mylist')
}
/**
 * 获取设备列表
 */
export function getDeviceList() {
    return request.get('store/mydevice')
}
/**
 * 获取本期租金
 */
export function getRentInfo() {
    return request.get('store/rentinfo')
}
/**
 * 获取门店信息
 */
export function getShopDetail(data: AnyObject) {
    return request.get('store/info',data)
}
/**
 * 获取门店账单
 */
export function getShopBillList() {
    return request.get('store/rentbill')
}
/**
 * 获取门店租用设备
 */
export function getShopDeviceList(data?: AnyObject) {
    return request.get('store/devices',data)
}

/**
 * 获取门店租用明细
 */
export function getShopDeviceFlows(data?: AnyObject) {
    return request.get('store/rentlist',data)
}
